<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      lang="zh-CN"
      xmlns:th="http://www.thymeleaf.org"
      xmlns="http://www.w3.org/1999/xhtml" layout:decorate="~{layout/template}">
<head>
    <title>编辑</title>
    <link rel="stylesheet" href="/css/cms/channel/add.css"/>
</head>
<body>
<div id="contentContainer" layout:fragment="content" class="contentContainer navItem" v-cloak>

    <el-row>
        <el-col :span="12" :offset="6">
            <el-form :model="form" :rules="rules" ref="form" label-width="100px">
                <el-form-item label="栏目名称" prop="channelName">
                    <el-input v-model="form.channelName"></el-input>
                </el-form-item>
                <el-form-item label="栏目路径" prop="channelPath">
                    <el-input v-model="form.channelPath"></el-input>
                </el-form-item>
                <el-form-item label="父栏目" prop="parentIdList">
                    <el-cascader
                            :show-all-levels="true"
                            v-model="form.parentIdList"
                            change-on-select
                            :options="options"
                            :props="props">
                    </el-cascader>
                </el-form-item>
                <el-form-item label="排序" prop="priority">
                    <el-input-number v-model="form.priority" :controls="true" :min="0"></el-input-number>
                </el-form-item>
                <el-form-item label="流程" prop="processDefinitionId">
                    <el-select v-model="form.processDefinitionId" clearable
                               placeholder="请选择流程">
                        <el-option
                                v-for="item in processDefinitionList"
                                :key="item.processDefinitionId"
                                :label="item.processDefinitionName"
                                :value="item.processDefinitionId">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="submitForm('form')">立即创建</el-button>
                    <el-button @click="resetForm('form')">重置</el-button>
                </el-form-item>
            </el-form>
        </el-col>
    </el-row>

</div>

<th:block layout:fragment="staticFile">
    <script src="/js/cms/channel/edit.js"></script>
</th:block>

</body>
</html>